﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace MyTodoApi.Services
{
    /// <summary>
    /// 查询结果类
    /// </summary>
    public class ApiResponse
    {
        public ApiResponse(bool success, object result)
        {
            this.Success = success;
            this.Result = result;
        }

        public ApiResponse(bool success, string message)
        {
            this.Success = success;
            this.Message = message;
        }

        public string Message { get; set; }
        public bool Success { get; set; }
        public object Result { get; set; }
    }
}
